package com.itheima.smspringboot.exception;

public class CustomerExpception extends RuntimeException {

    private String code;
    private String msg;

    public CustomerExpception(){

    }

    public CustomerExpception(String code, String msg) {
        this.code = code;
        this.msg = msg;

    }



    public CustomerExpception(String msg) {
        this.code = "500";
        this.msg = msg;

    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


}
